package com.helen.mybatis.session;

import com.helen.mybatis.configration.Configuration;

/**
 * @author helenlee
 * @date 2020/4/8
 *
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory{
    Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSessionImpl(this.configuration);
    }
}
